import math

def my_abs(x):
  if not isinstance(x, (int, float)):
    raise TypeError('参数类型不正确')
  if x > 0:
    return x
  else:
    return -x
	
	
def move(x, y, step, angle = 0):
  nx = x + step * math.cos(angle)
  ny = y + step * math.sin(angle)
  return nx, ny